package com.itheima.serice.impl;

import com.itheima.serice.UserService;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void insertUser(User user) {
        userMapper.insertUser(user);
    }
    @Override
    public void deleteById(int id){
        userMapper.deleteById(id);

    }
    @Override
    public User ueryUser(User user){

       User userresult= userMapper.queryById(user);
       return userresult;
    }
    @Override
    public List<User> queryList(){
        List<User> list=userMapper.queryList();
        return list;
    }
    @Override
    public void updateById(User user){
        userMapper.updateById(user);
    }
}
